package top.infopub.mgr.bpa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.ContractExtSubDao;
import top.infopub.model.bpa.ContractExtSub;
import top.infopub.mgr.bpa.service.ContractExtSubService;

@Service
public class ContractExtSubServiceImpl extends GenericServiceImpl<ContractExtSub, String> implements
		ContractExtSubService {

	@Autowired
	private ContractExtSubDao contractExtSubDao;
	
	@Override
	public GenericDao<ContractExtSub, String> getDao() {
		return contractExtSubDao;
	}

    @Override
    public List<ContractExtSub> selectByContractExtSubId(String contractExtId) {
        return contractExtSubDao.selectByContractExtSubId(contractExtId);
    }

    @Override
    public List<ContractExtSub> selectAllBySubNames(String contractExtId) {
        return contractExtSubDao.selectAllBySubNames(contractExtId);
    }

    @Override
    public void insertById(ContractExtSub contractExtSub) {
        contractExtSubDao.insertById(contractExtSub);
    }

}